<!-- 物流详情 -->
<template>
	<view>
		<u-navbar :isFixed="true" title="物流详情" :borderBottom="true"></u-navbar>
			<view class="msg">
				<view class="flex_align item">
					<view class="title">物流公司</view>
					<view>{{detail.title}}</view>
				</view>
				<view class="flex_align item">
					<view class="title">物流单号</view>
					<view @click="$plug.copyText(detail.waybillno)">{{detail.waybillno}}</view>
				</view>
				<view class="flex_align item">
					<view class="title">发货时间</view>
					<view>{{detail.createtime}}</view>
				</view>
				<!-- <view class="flex_align item">
					<view class="title">联系电话</view>
					<view @click="$plug.copyText(detail.courierPhone)">{{detail.courierPhone}}</view>
				</view> -->
			</view>
			<view class="timeline">
				<u-time-line>
					<block v-for="(item,index) in list" :key="index">
						<u-time-line-item>
							<template v-slot:content>
								<view>
									<view class="u-order-desc">{{item.status}}</view>
									<view class="u-order-time">{{item.time}}</view>
								</view>
							</template>
						</u-time-line-item>
					</block>
				</u-time-line>
			</view>
			<!-- <view class="msg">
				<view class="flex_align item">
					<view class="title">物流单号</view>
					<view @click="$plug.copyText(detail.logistics_order_sn)">{{detail.logistics_order_sn}}</view>
				</view>
				<view class="flex_align item">
					<view class="title">物流公司</view>
					<view>{{detail.logistics_name}}</view>
				</view>
				<view class="flex_align item">
					<view class="title">承运人</view>
					<view>{{detail.username}}</view>
				</view>
				<view class="flex_align item">
					<view class="title">联系电话</view>
					<view @click="$plug.copyText(detail.mobile)">{{detail.mobile}}</view>
				</view>
				<view class="flex_align item">
					<view class="title">收货地址</view>
					<view style="flex: 1;" @click="$plug.copyText(detail.city)">{{detail.city}}</view>
				</view>
			</view>
			<view class="not_more">
				<image src="../static/img/wwuliu.png" mode="widthFix"></image>
				<view class="text">暂无物流信息</view>
			</view> -->
	</view>
</template>

<script>
	var _this,shak;
	export default {
		data() {
			return {
				id:0,
				list:[],
				detail:{}
			}
		},
		onLoad(options) {
			_this = this
			_this.id=options.id
			_this.getdata()
		},
		methods: {
			// 获取数据
			getdata() {
				_this.$api.get("logistics", {
					order_id:_this.id,
					type:3
					}).then(data => {
					_this.list = data.result.list
					_this.detail=data.result
				});
			},
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #F8F8F8;
		font-family: PingFang SC;
	}

	.msg {
		background-color: #FFFFFF;
		padding: 16rpx 60rpx 26rpx;
		font-size: 28rpx;
		font-weight: 500;
		text-align: left;
		color: #333333;
		.item{
			margin-bottom: 20rpx;
		}
		
		.title {
			width: 180rpx;
			font-weight: 700;
		}
	}
	.timeline{
		padding:44rpx 30rpx;
		.u-node {
			width: 44rpx;
			height: 44rpx;
			border-radius: 100rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			background: #38BE8C;
		}
		
		.u-order-title {
			color: #333333;
			font-weight: 500;
			font-size: 28rpx;
		}
		
		.u-order-desc {
			color: #333333;
			font-size: 24rpx;
			margin-bottom: 4rpx;
		}
		
		.u-order-time {
			color: #999999;
			font-size: 20rpx;
		}
	}
	
</style>
